<?php
// +----------------------------------------------------------------------
// | Copyright (c) 2017~2023 https://www.gxgyl.com All rights reserved.

// +----------------------------------------------------------------------
// | Author: Liuyu
// +----------------------------------------------------------------------
declare (strict_types = 1);

namespace app\common\model\shiyao;

use cores\BaseModel;

/**
 * 申办方模型
 * Class User
 * @package app\common\model
 */
class Pi extends BaseModel {
	// 定义表名
	protected $name = 'shiyao_project_center_pi';

	// 定义主键
	protected $pk = 'pi_id';

	public function pay() {
		return $this->hasOne('ProjectPay', 'center_id', 'center_id');
	}

	public function project() {
		return $this->hasOne('Project', 'project_id', 'project_id');
	}

	public function center() {
		return $this->hasOne('ProjectCenter', 'id', 'center_id');
	}

}
